# 基于哪个镜像
FROM java:8
# 拷贝文件到容器，也可以直接写成ADD cloud-eureka-1.0-SNAPSHOT.jar/app.jar
ADD target/*.jar app.jar
RUN bash -c 'touch /app.jar'
RUN mkdir -p /var/log/gateway
RUN mkdir -p /var/log/jvm
# 8764
EXPOSE 8764
# 配置容器启动后执行的命令
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]
